using UnityEngine;

public class ProductSkin : Product
{
	public bool femaleSkin;

	public bool CanGiveRandom;

	public ProductSkin(string id_G, MoneyType priceIng_G, int price_G, bool availableForBuy_G, float sortWeight_G, string texture_G, string nameForFlurry_G, bool isTemporary_G, int tier_G, bool bestPrice_G, bool newProduct_G, string nextProductId_G, string prevProductId_G, string categoryName_G, string subCategoryName_G, RareType rare_G, bool femaleSkin_G, bool CanGiveRandom_G)
		: base(id_G, priceIng_G, price_G, availableForBuy_G, sortWeight_G, texture_G, nameForFlurry_G, isTemporary_G, tier_G, bestPrice_G, newProduct_G, nextProductId_G, prevProductId_G, categoryName_G, subCategoryName_G, rare_G)
	{
		femaleSkin = femaleSkin_G;
		CanGiveRandom = CanGiveRandom_G;
	}

	protected override string GetEquipedKey()
	{
		return "skin";
	}

	public Texture2D GetSkinTexture()
	{
		return Resources.Load<Texture2D>("Skins/" + id);
	}
}
